<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
	xmlns:h="http://java.sun.com/jsf/html"
	xmlns:f="http://java.sun.com/jsf/core"
	xmlns:ui="http://java.sun.com/jsf/facelets"
	xmlns:p="http://primefaces.org/ui">

<h:head>
	<title>TESTE HOME</title>
	<link rel="stylesheet" type="text/css" href="css/estrutura.css" />

	<link rel="icon" href="imgs/favicon.ico" type="image/x-icon" />
	<link rel="shortcut icon" href="imgs/favicon.ico" type="image/x-icon" />
	<link rel="shortcut icon" href="imgs/favicon.ico"
		type="image/vnd.microsoft.icon" />


</h:head>
<body>

	#{usuarioBean.permissaoLogado()}

	<div class='center table'>
		<div class='tr'>
			<div class='td'>
				<div class='inblock'>

					<div class='logo'>
						<img src="imgs/linkers-logo.png" />
					</div>
					
					Página de teste

					<div class='content'>
						
						Usuário logado: " <h:outputText value="#{usuarioBean.usuarioLogado.nome}" /> ". 
						
						<br/>
						Todos usuários:


						<h:dataTable value="#{usuarioBean.listarTodosUsuarios()}" var="lusers" border="1">
						
							<h:column>
								<f:facet name="header">ID</f:facet>
								<h:outputText value="#{lusers.id}" />
							</h:column>
							<h:column>
								<f:facet name="header">NOME</f:facet>
								<h:outputText value="#{lusers.nome}" />
							</h:column>
							<h:column>
								<f:facet name="header">SOBRENOME</f:facet>
								<h:outputText value="#{lusers.sobrenome}" />
							</h:column>
							<h:column>
								<f:facet name="header">LOGIN</f:facet>
								<h:outputText value="#{lusers.login}" />
							</h:column>
							<h:column>
								<f:facet name="header">SENHA</f:facet>
								<h:outputText value="#{lusers.senha}" />
							</h:column>
						
						</h:dataTable>
						
						<a href="home.xhtml">ir para HOME (em desenvolvimento)</a>


					</div>

				</div>
			</div>
		</div>
	</div>


</body>
</html>
